package com.qf.service.impl;
/*
   @author 86155
   @ClassName: com.qf.service.impl.UserServiceImpl
   @Description: 该类的功能描述
   @date: 2021/10/10 17:33 
*/

import com.qf.common.request.UserRequestParams;
import com.qf.entity.User;
import com.qf.mapper.UserMapper;
import com.qf.service.UserService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    Integer count;
    @Resource
    private UserMapper userMapper;

    @Override
    public Boolean add(UserRequestParams userRequestParams) {
        User user = new User();
        BeanUtils.copyProperties(userRequestParams,user);
        count= userMapper.insertUser(user);
        return count>0;
    }
}
